package com.core.family.admin.domain;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * @author honglei
 * @version 1.0
 * @time: 2024-6-17 14:49:13
 * @Description PO对象 租户|组织
 */
@Data
@TableName(value = "uc_org")
public class Org implements Serializable {


    /*
     *
     */
    @TableField(value = "id")
    private Integer id;

    /*
     *
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    /*
     *  昵称
     */
    @TableField(value = "nick_name")
    private String nickName;

    /*
     *  组织码
     */
    @TableField(value = "code")
    private String code;

    /*
     *  组织名
     */
    @TableField(value = "name")
    private String name;

    /*
     *  电话
     */
    @TableField(value = "mobile")
    private String mobile;

    /*
     *  邮箱
     */
    @TableField(value = "email")
    private String email;

    /*
     *  1 个人,2公司,3集团
     */
    @TableField(value = "org_type")
    private Integer orgType;

    /*
     *  电话
     */
    @TableField(value = "tel")
    private String tel;

    /*
     *  状态
     */
    @TableField(value = "status")
    private Integer status;

    /*
     *  逻辑删标志
     */
    @TableField(value = "is_del")
    private Integer isDel;

    /*
     *
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /*
     *
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
